package com.bsoft.wx.execption;

import lombok.Data;

/**
 * @author hdh
 * @ Data   :Created in 21:51 2023/1/12
 * @ Description 异常类
 * @ Modified By: hdh
 * @ Version : 1.0
 */
@Data
public class EmosExection extends RuntimeException {
    private String msg;
    private int code = 500;

    public EmosExection(String msg) {
        super(msg);
        this.msg = msg;
    }

    public EmosExection(String msg, Throwable throwable) {
        super(msg, throwable);
        this.msg = msg;
    }

    public EmosExection(String msg, int code) {
        super(msg);
        this.msg = msg;
        this.code = code;
    }

    public EmosExection(String msg, int code, Throwable throwable) {
        super(msg, throwable);
        this.msg = msg;
        this.code = code;
    }
}
